
class PlayerManager {

    private static _ins: PlayerManager;
    public static get instance(): PlayerManager {
        return this._ins || (this._ins = new PlayerManager());
    }
    constructor() {
        PlayerManager._ins = this;
    }

    public jumpDistance: number = 0;
    public power: number = 0;
    public initSpeed: number = 0;
    public speed: number = 0;
    public isReadyJump: boolean = false;
    public direction: number = 1;

    private readyJumpAudio = null;
    private readyJumpAudioId = -1;

}